import java.util.Scanner;

public class test14 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("从该数字开始报数");
        int a = sc.nextInt();
            for (; a < 100; a++) {
                if (a % 7 == 0 || a %10 ==7 || a / 10 %10 == 7) {
                    System.out.println("过");
                    continue;
                }
                System.out.println(a);
            }
        }
    }

